<!DOCTYPE html>
<html lang="en">
<head>
<{include file="public_html/header_tag.html"}>
    <title>提交订单</title>
    <link href="/static/public/layer/src/css/layui.css" rel="stylesheet">
    <script src="/static/public/layer/src/layui.js"></script>
</head>
<body>
<div class="wrap">
	<!--star header-->
    <div class="header">
<{include file="public_html/header_menu.html"}>
    </div>
	<!--end  header-->

    <div class="return_nav">
    	<div class="w1200 line-bottom">
        您的位置：<a href="/">首页</a><span>&gt;</span><em>提交订单</em>
        </div>
    </div>
	<!--star main-->
    <div class="wrap_main fix">
        <!--content star-->
        <div class="col_main">
            <!--star提交订单-->
            <div class="box_item m-t30 tijiaoLC">
            	<div class="mt fix LH50 line-bottom">
                	<div class="tit l fs26 c-1aa3fa">订单详情</div>
                    <div class="city_path r">
                        <ul>
                            <li><div class="u1"><i class="u1">1</i></div><span>我的购物车</span></li>
                            <li class="curr"><div class="u1"><i class="u1">2</i></div><span>填写核对订单信息</span></li>
                            <li><div class="u1"><i class="u1">3</i></div><span>支付完成</span></li>
                        </ul>
                    </div>
                </div>
                <div class="mc fix LH40 fs18">

                <div class="p-tb20">课程信息</div>
                  <div class="fs14 t_form tal">
                    <table width="100%">
                        <tr>
                            <th><{if $course_type == 4}>科目<{else}>课程<{/if}></th>

                            <{if $course_type != 4 AND $course_type != 5}><th>课节数</th><{/if}>
                            <th>折扣</th>
                            <!-- <th>教师</th> -->
                            <th>价格</th>
                          </tr>
                          <{foreach from=$cart_list item=item}>
                          <tr>
                            <td>
                                <dl class="fix p-tb20">
                                    <dt class="l img12070 m-r40"><img src="<{$item['course_img']}>"></dt>
                                      <dd class="p-t5">
                                        <div class="fs18"><{$item['title']}></div>
                                          <div></div>
                                      </dd>
                                  </dl>
                              </td>

                              <{if $course_type != 4 AND $course_type != 5}>
                              <td>
                                <span class="fs16 c-FF0000"><{$item['course_time']}></span>
                              </td>
                              <{/if}>
                              <td>
                                <span class="c-666666">无折扣</span>
                              </td>
                              <!-- <td>
                                <span class="c-666666">陈述</span>
                              </td> -->
                              <td>
                                <span class="fs16 c-FF0000"><{if isset($item['fx_price'])}><{$item['fx_price']|string_format:"%.2f"}><{else}><{$item['price']|string_format:"%.2f"}><{/if}></span>
                              </td>
                          </tr>
                          <{/foreach}>
                      </table>
                  </div>
                  <{if $course_type == 3}>
                  <div class="p-tb20">学员信息</div>
                  <div class="fix line-all b-FFFFFF p30">
                    <{if isset($student) }>
                    <div><span class="fwb">&nbsp;</span><a class="r c-1aa3fa" href="javascript:;" onClick="openWin();" id="edit_info">编辑信息</a></div>
                    <div class="fs12 LH20 p-tb20" id="userinfo" >
                      <span class="p-r20"><{$student['name']}></span><span class="p-r20"><{$student['address']}></span>
                      <span class="p-r20">
                        <{if $student['on_job']==0}>
                        非在职
                        <{else if $student['on_job']==1}>
                        在职
                        <{/if}>
                      </span>
                      <!-- <span class="p-r20">本科</span> -->
                      <span class="p-r20"><{$student['phone']}></span>
                    </div>
                    <{else}>

                    <div class="fs14">
                        <div><span class="fwb">&nbsp;</span><a class="r c-1aa3fa" href="javascript:;" onClick="openWin();" id="edit_info">+添加信息</a></div>
                          <div class="fs20 tac p-tb20" id="add_xueyuan">
                            <a href="javascript:;" style="color:#d1cfcf;" onClick="openWin();"><span class="p-r20">+</span>添加学员信息</a>
                          </div>
                      </div>
                      <{/if}>


                  </div>
                  <{/if}>
                    <div class="p-tb20"></div>
                    <div class="fix line-all b-FFFFFF p30">
                    	<div class="p-lr40">

                            <div class="tar p-t40 line-bottom">
                              <{if isset($error)}>
                              <span><{$error}></span>
                              <{/if}>
                                <span class="c-FF0000">应付总额：<span class="fs30">¥<{$total_amout|string_format:"%.2f"}></span></span>
                            </div>
                            <div class="tar LH50 p-tb15 fs20">
                                <form action="/order/settle/<{$settle_id}>" id="order_form" method="post">
                                    <input type="hidden" name="settle_id" value="<{$settle_id}>" />
                                    <input type="submit" value="提交订单" class="btn-ff5a00 p-tblr1045">
                                </form>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
            <!--end提交订单-->
            <div class="fix" style="height:90px;"></div>

        </div>
        <!--content end-->
    </div>
	<!--end  main-->
    <!--star  footer-->
    <div class="footer b-FFFFFF">
      <{include file="public_html/footer.html"}>
    </div>
    <!--end  footer-->
</div>
<script type="text/javascript">
  var iframe_index ;
function openWin(){
  //iframe层-父子操作
   iframe_index = layer.open({
    type: 2,
    area: ['700px', '580px'],
    fixed: false, //不固定
    maxmin: false,
    shadeClose: true,
    title: '编辑学员信息',
    content: ['/order/student_info', 'no']
  });


	// var tit_H = 40,
	// width = 560,//ifrane宽
	// height = 350,//ifrane高
	// btnheight = 60,
	// styleBtn = 'defaultBtn',//1,defaultBtn默认,2,freshBtn清新,3,待定【选择按钮风格】
	// title = '编辑信息',
	// btnVal = '确认',
	// align = 'right',
	// yesno = 'no',//取消按钮是否显示，显示：yes,取消：no
	// src = '/order/student_info';
	// $.fn.xljspopWin.showWin(src,tit_H,title,width,height,btnheight,align,styleBtn,yesno,btnVal, function(){
	// 	//alert('确认并执行效果');
	// 	//简单的效果
	// 	$('#userinfo').show();
	// 	$('#add_xueyuan').hide();
	// 	$('#edit_info').html('编辑信息');
	// });
}
function save_close(){

  parent.layer.close(iframe_index);
  window.location.href=window.location.href;
  window.location.reload;
}
</script>
</body>
</html>
